/*
 * @Author: your name
 * @Date: 2022-03-21 21:49:18
 * @LastEditTime: 2022-07-12 01:32:54
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \PWM_Demo\Middlewares\Device\light.c
 */
#include "light.h"

/**
 * @description:
 * @param {*}
 * @return {*}
 */
void lightInit()
{
    gpio_init(GREEN_PIN,GPO, 0, PUSHPULL);
    gpio_init(RED_PIN,GPO,0, PUSHPULL);
}

/**
 * @description:
 * @param {*}
 * @return {*}
 */
void cityGreen()
{
    gpio_toggle(GREEN_PIN);//1
    systick_delay_ms(STM0,500);
    gpio_toggle(GREEN_PIN);
    systick_delay_ms(STM0,300);
    gpio_toggle(GREEN_PIN);//2
    systick_delay_ms(STM0,500);
    gpio_toggle(GREEN_PIN);
    systick_delay_ms(STM0,300);
    gpio_toggle(GREEN_PIN);//3
    systick_delay_ms(STM0,500);
    gpio_toggle(GREEN_PIN);
    systick_delay_ms(STM0,300);
    gpio_init(GREEN_PIN,GPO, 0, PUSHPULL);

}








